Designing APIs with Swagger and OpenAPI by Joshua S. Ponelat Lukas L. Rosenstock

Designing APIs with Swagger and OpenAPI by Joshua S. Ponelat Lukas L. Rosenstock

Author:Joshua S. Ponelat, Lukas L. Rosenstock [Joshua S. Ponelat, Lukas L. Rosenstock]
Language: eng
Format: epub, pdf
Publisher: Manning Publications Co.
Published: 2022-05-20T22:00:00+00:00


For each resource—each instance of a schema—there is a document in the respective collection.

In fact, Mongoose follows this approach already. We create Mongoose models from the schemas we have, and Mongoose creates a MongoDB collection for each model. So what models do we have to create?

A User model based on the User schema.

A Job model based on the Job schema. Because we’ve established that dogs are always part of a specific job, we can integrate the Dog schema into this model.

A JobApplication model based on the JobApplication schema.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.